php get highest key value

44

php get highest key value -

$arr = array( 1 => "A", 10 => "B", 5 => "C" );
max(array_keys($arr));

Comments

Submit
0 Comments